package top;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import top.jx.util.SpringHelper;

@SpringBootApplication
@EntityScan({"top.jx.model","top.opm.model","top.opm.entity"})
@EnableCaching
//@EnableScheduling
public class OpmApplication {


    public static void main(String[] args) {
        ApplicationContext run = SpringApplication.run(OpmApplication.class, args);
        SpringHelper.setApplicationContext(run);

    }
}
